package homework_5.write;

public class Creep implements Runnable {
        private Player player = new Player();

    @Override
    public void run() {
        player.beAttacked(20);
    }


    public static void main(String[] args) {
        Creep r = new Creep();
        Thread ca = new Thread(r, "Creep-A");
        Thread cb = new Thread(r, "\t\t\tCreep-B");
        ca.start();
        cb.start();
    }
}

